package com.wise.service.cms.content.productindustry.product;

import com.wise.summer.v1.cms.content.product.DeleteProductById;
import com.wise.summer.v1.cms.content.productindustry.DeleteProductIndustryById;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.summerframework.model.SummerService;
import org.summerframework.model.SummerServiceBean;

/**
 * @author shaoming
 * @date 2019-09-09
 */
@Service
@SummerService
public class DeleteProductIndustryByIdService implements SummerServiceBean<DeleteProductIndustryById> {
	@Override
	public void sum(DeleteProductIndustryById summer) {
		DeleteProductById deleteProductById = new DeleteProductById();
		BeanUtils.copyProperties(summer, deleteProductById);
		deleteProductById.sum();
		summer.setSummerResult(deleteProductById.getSummerResult());
	}
}
